package com.jr.dao.impl;

import com.jr.dao.IInstitutyDao;
import com.jr.pojo.Instituty;
import com.jr.util.DBHelper;

import java.util.ArrayList;

public class InstitutyDaoImpl implements IInstitutyDao {
    private DBHelper db  = new DBHelper();
    // 查询所有金融机构
    public ArrayList<Instituty> selectAllInstituty() {
        String sql = "select * from instituty";
        return db.dtQuery(sql,Instituty.class);
    }

}
